package rs.dalao.syc.index.service.impl;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rs.dalao.syc.index.dao.persist.repository.IAidRepository;
import rs.dalao.syc.index.pojo.vo.AidDetailVO;
import rs.dalao.syc.index.pojo.vo.AidKeywordsVO;
import rs.dalao.syc.index.pojo.vo.AidMenuVO;
import rs.dalao.syc.index.pojo.vo.HotDetailVO;
import rs.dalao.syc.index.service.IAidService;

import java.util.List;

@Service
public class AidServiceImpl implements IAidService {
    @Autowired
    private IAidRepository repository;

    /**获取一级目录信息*/
    @Override
    public List<AidMenuVO> getAidMenu() {
        return repository.getAidMenu();
    }


    @Override
    public List<AidKeywordsVO> getKeywords(Integer type) {
        return repository.getKeywords(type);
    }

    @Override
    public List<AidDetailVO> selectByIdForDetail(Long aidId) {
        return repository.selectByIdForDetail(aidId);
    }

    @Override
    public List<HotDetailVO> selectAidHotDetail(){
        return repository.selectAidHotDetail();
    }
}
